package test;

import demo3.Person;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;


public class Demo {
    public static void main(String[] args) {


        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("test");
        Driver driver = context.getBean(Driver.class);
        driver.work();


    }
}